package c.test;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class A {

    public static void main(String[] args) {
        //// String s =
        //// "a==3.4.6&=s==2.3.0&=p==3.2.0&&4.8.3_1492331834442_envelope.log";
        // String s =
        // "ad==3.4.6&=s==2.3.0&=p==3.2.0&&4.8.3_1492331834442_envelope.log";
        //// String s =
        //// "d==3.4.6&=s==2.3.0&=p==3.2.0&&4.8.3_1492331834442_envelope.log";
        // s = s.substring(0, s.indexOf('_'));
        // // a==3.4.6&=s==2.3.0&=p==3.2.0&&4.8.3
        // prserCurrentType(s);
        // System.out.println(0xFF & 'c');

        int x = 1;
        while (true) {
            if (x == 5) {
                break;
            }
            ++x;
            System.out.println("aaaaaa" + x);
        }
        System.out.println("out");
    }

    public static final String HTTP_CONTENTTYPE_BASE = "ut/";

    private static void prserCurrentType(String fileName) {
        String temp = fileName.split("&&")[0];
        if (temp != null) {
            String[] tAv = temp.split("&=");
            System.out.println(tAv.length);
            String a = null;
            for (int i = 0; i < tAv.length; i++) {
                a = tAv[i];
                if (a != null) {
                    a = a.substring(0, 2);
                    if (a.endsWith("=")) {
                        a = a.replace("=", "");
                    }
                    System.out.println(a);

                }

            }
        }
    }

    private static void test(String s) {
        System.out.println(s);
        String[] ss = s.split("&&");
        System.out.println(ss[0]);
        System.out.println(ss[1]);
        System.out.println(s.replaceAll("&=", " ").replaceAll("&&", " ").replaceAll("==", "/"));
    }

    private static void OOOA() {
        String res = "a==3.4.6&=s==2.3.0&=p==3.2.0&=";
        if (res.endsWith("&=")) {
            System.out.println("以&=结尾");
            System.out.println("处理前:" + res);
            res = res.substring(0, res.length() - 2);
            System.out.println("处理后:" + res);
        }
    }
}
